# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header

inherit darcs

DESCRIPTION="RFC3261 compliant SIP User-Agent library"
HOMEPAGE="http://sofia-sip.sourceforge.net/"

EDARCS_REPOSITORY="http://sofia-sip.org/repos/sofsip-cli"
EDARCS_LOCALREPO="sofsip-cli"

SLOT="0"
LICENSE="LGPL-2.1"
KEYWORDS="~amd64 ~x86"
IUSE="ssl gst"

RDEPEND="dev-libs/glib
	dev-libs/openssl
	media-libs/gstreamer
	net-libs/sofia-sip
	dev-libs/libnice"
DEPEND="${RDEPEND}"

src_compile() {
	local ${myconf}
	aclocal
	autoheader
	libtoolize --force
	automake --add-missing
	autoconf
	use gst && myconf="${myconf} --enable-gstreamer"
	econf ${myconf} || die "econf failed"
	emake || die "emake failed"
}

src_install() {
	emake DESTDIR="${D}" install || die "emake install failed"

	dodoc ChangeLog COPYRIGHTS README TODO
}
